package com.mmd.admin.model.pojo.result;

import com.mmd.base.utils.CollectionUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@Builder
@ApiModel("管理员权限信息")
public class RuleVO {

    @ApiModelProperty("唯一主键id")
    private Long id;

    @ApiModelProperty(value = "父级id")
    private Long parentRuleId;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "关键字")
    private String keyss;

    @ApiModelProperty("当前数据 备注系统级字段 非业务逻辑字段")
    private String remark = "系统生成";

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("子权限")
    private List<RuleVO> child;

    @ApiModelProperty("是否有该权限")
    private boolean haveNotHave;
}
